<script language=javascript>
	String.prototype.trim = function() {
		return this.replace(/(^\s*)|(\s*$)/gi, "");
	}

	function chkForm()
	{

		if(loginForm.loginId.value.trim().length == 0)
		{
			alert('Email is empty');
			return false;
		}

		if(loginForm.loginPwd.value.trim().length == 0)
		{
			alert('Password is empty');
			return false;
		}

		return true;
		
	}
</script>

		<center><br><br><br><br>
		<form name='loginForm' method='post' action='/' onsubmit='return chkForm()'>
		<TABLE WIDTH=400>
			<tr>
				<td>EMAIL</td>
				<td><input type=text name='loginId'></td>
			</tr>
			<Tr>
				<td>PASSWORD</td>
				<td><input type=password name='loginPwd'></td>
			</tr>
			<tr>
				<td colspan=2><br><center><input type=submit value=' login '></td>
			</tr>
		</table></form>
